package com.java2404.mp2.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;

/**
 * @Author: 汤秦凯
 * @CreateTime: 2024/12/24
 * @Version: JDK 1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Student {
    @ApiModelProperty(value = "学生id")
    private Integer id;
    @NotBlank
    @ApiModelProperty(value = "学生姓名")
    private String name;
    @ApiModelProperty(value = "学生年龄")
    private Integer age;
    @ApiModelProperty(value = "学生性别")
    private String gender;
    @ApiModelProperty(value = "学生地址")
    private String address;
}
